home *** CD-ROM | disk | FTP | other *** search
- Path: gate.net!pslfl2-38
- From: bhutto@gate.net (William Hutto)
- Newsgroups: comp.lang.c
- Subject: Re: Question!@#!
- Date: 15 Jan 1996 11:10:10 GMT
- Organization: CyberGate, Inc.
- Message-ID: <4ddcmi$11lo@news.gate.net>
- References: <4dcejq$2un@venus.senecac.on.ca>
- NNTP-Posting-Host: pslfl2-38.gate.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4dcejq$2un@venus.senecac.on.ca>,
- cweselak@learn.senecac.on.ca (Christian Weselak) wrote:
- >
- >I have a very Simple question.. well, it should be simple for 'alot' of
- >you reading this newsgroup..
- >
- >anyways.
- >
- >I have created a program that asks THE users for his name, then writes it
- >to a file, the file is called name.txt..
- >
- >Evertime this program is executed, the file name.txt get's overwritten.
- >
- >How can i keep this file, name.txt, so that i can eventually have a
- >listing of all users who ran my program???
- >
- >Appreciated..
- >
-
- FILE *namefile;
-
- if((namefile=fopen("name.txt","a"))==NULL) {
- /*error*/
- }
-
- Bill
-
- "Whatcha got on?...Your mind?"
-